package com.ruoyi.approval.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.approval.mapper.ASchedulingApplicationVehicleMapper;
import com.ruoyi.approval.domain.ASchedulingApplicationVehicle;
import com.ruoyi.approval.service.IASchedulingApplicationVehicleService;

/**
 * 申请与车辆关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-02
 */
@Service
public class ASchedulingApplicationVehicleServiceImpl implements IASchedulingApplicationVehicleService 
{
    @Autowired
    private ASchedulingApplicationVehicleMapper aSchedulingApplicationVehicleMapper;

    /**
     * 查询申请与车辆关联
     * 
     * @param id 申请与车辆关联主键
     * @return 申请与车辆关联
     */
    @Override
    public ASchedulingApplicationVehicle selectASchedulingApplicationVehicleById(Long id)
    {
        return aSchedulingApplicationVehicleMapper.selectASchedulingApplicationVehicleById(id);
    }

    /**
     * 查询申请与车辆关联列表
     * 
     * @param aSchedulingApplicationVehicle 申请与车辆关联
     * @return 申请与车辆关联
     */
    @Override
    public List<ASchedulingApplicationVehicle> selectASchedulingApplicationVehicleList(ASchedulingApplicationVehicle aSchedulingApplicationVehicle)
    {
        return aSchedulingApplicationVehicleMapper.selectASchedulingApplicationVehicleList(aSchedulingApplicationVehicle);
    }

    /**
     * 新增申请与车辆关联
     * 
     * @param aSchedulingApplicationVehicle 申请与车辆关联
     * @return 结果
     */
    @Override
    public int insertASchedulingApplicationVehicle(ASchedulingApplicationVehicle aSchedulingApplicationVehicle)
    {
        return aSchedulingApplicationVehicleMapper.insertASchedulingApplicationVehicle(aSchedulingApplicationVehicle);
    }

    /**
     * 修改申请与车辆关联
     * 
     * @param aSchedulingApplicationVehicle 申请与车辆关联
     * @return 结果
     */
    @Override
    public int updateASchedulingApplicationVehicle(ASchedulingApplicationVehicle aSchedulingApplicationVehicle)
    {
        return aSchedulingApplicationVehicleMapper.updateASchedulingApplicationVehicle(aSchedulingApplicationVehicle);
    }

    /**
     * 批量删除申请与车辆关联
     * 
     * @param ids 需要删除的申请与车辆关联主键
     * @return 结果
     */
    @Override
    public int deleteASchedulingApplicationVehicleByIds(Long[] ids)
    {
        return aSchedulingApplicationVehicleMapper.deleteASchedulingApplicationVehicleByIds(ids);
    }

    /**
     * 删除申请与车辆关联信息
     * 
     * @param id 申请与车辆关联主键
     * @return 结果
     */
    @Override
    public int deleteASchedulingApplicationVehicleById(Long id)
    {
        return aSchedulingApplicationVehicleMapper.deleteASchedulingApplicationVehicleById(id);
    }
}
